package io.renren.modules.sys.dao;

import io.renren.modules.sys.entity.LinePasswordEntityVO;
import io.renren.modules.sys.entity.ShopOrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.sys.entity.ShopOrderVOEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2019-10-25 17:16:55
 */
@Mapper
public interface ShopOrderDao extends BaseMapper<ShopOrderEntity> {

    public List<ShopOrderEntity> queryList();

    List<ShopOrderVOEntity> getOrder(@Param("orderSn") String orderSn, @Param("status") Integer status,
                                     @Param("userid") Long userid, @Param("currPage") Integer currPage,
                                     @Param("pageSize") Integer pageSize);
    int queryListcount(@Param("orderSn") String orderSn, @Param("status") Integer status,
                       @Param("userid") Long userid);

    List<ShopOrderVOEntity> getOrderMoney(@Param("userid") Long userid);


    List<ShopOrderVOEntity> getOrderByAgent(@Param("orderSn") String orderSn,@Param("userid") Long userid, @Param("currPage") Integer currPage,
                                     @Param("pageSize") Integer pageSize);
    int queryAgentcount(@Param("orderSn") String orderSn,@Param("userid") Long userid);


    List<ShopOrderVOEntity> getOrderBySale(@Param("orderSn") String orderSn,@Param("userid") Long userid, @Param("currPage") Integer currPage,
                                            @Param("pageSize") Integer pageSize);
    int querySalecount(@Param("orderSn") String orderSn,@Param("userid") Long userid);

    List<ShopOrderVOEntity> getOrderByMerchant(@Param("orderSn") String orderSn,@Param("userid") Long userid, @Param("currPage") Integer currPage,
                                           @Param("pageSize") Integer pageSize);
    int queryMerchantcount(@Param("orderSn") String orderSn,@Param("userid") Long userid);


}
